<?php
class RoleComponent extends CApplicationComponent
{

        const Admin = "Administrator";
        
        const Moderator = "Moderator";
        
        const User = "User";

        private static $map = array(
                0 => RoleComponent::Admin
                ); 

        public static function getRole($dbValue){
                return self::$map[$dbValue];
        }
}
?>